home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / apmd.postrm < prev    next >
Encoding:
Text File  |  2007-03-05  |  876 b   |  40 lines

  1. #!/bin/sh
  2. #
  3. # This is the postrm script for the Debian GNU/Linux apmd package
  4. #
  5. # Written by Dirk Eddelbuettel <edd@debian.org>   
  6.  
  7. set -e
  8.  
  9. del_link ()
  10. {
  11.     for FN in "${@}"; do
  12.     if [ -h "${FN}" ]; then
  13.         rm -f "${FN}" || true
  14.     fi
  15.     done
  16. }
  17.  
  18. case "$1" in
  19. (purge)
  20.     del_link /etc/apm/suspend.d/99hwclock /etc/apm/resume.d/00hwclock
  21.     [ -d /etc/apm/resume.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/resume.d
  22.     [ -d /etc/apm/suspend.d ] && rmdir -p --ignore-fail-on-non-empty /etc/apm/suspend.d
  23.     ;;
  24. esac
  25.  
  26. # Automatically added by dh_installdebconf
  27. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  28.     . /usr/share/debconf/confmodule
  29.     db_purge
  30. fi
  31. # End automatically added section
  32. # Automatically added by dh_installinit
  33. if [ "$1" = "purge" ] ; then
  34.     update-rc.d apmd remove >/dev/null || exit $?
  35. fi
  36. # End automatically added section
  37.  
  38.  
  39. exit 0
  40.